#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int arr1[10];
    int arr2[50] = { 0 };
    for (int i = 0; i < 10; i++)
    {
        scanf("%d", &arr1[i]);
    }
    int m = 1;
    while (arr1[m] == 0)
    {
        m++;
    }
    arr2[0] = m;
    arr1[m] -= 1;
    int count = 1;
    for (int x = 0; x < 10; x++)
    {
        for (int y = 0; y < arr1[x]; y++)
        {
            arr2[count] = x;
            count++;
        }
    }
    for (int i = 0; i < count; i++)
    {
        printf("%d", arr2[i]);
    }
    return 0;
}